class MessageEntity {
  int id;
  String title;
  String content;
  int type;
  int isJump;
  int param;
  String createTime;
  int uid;
  int readStatus;
  int isComplete;

  MessageEntity(
      {this.id,
        this.title,
        this.content,
        this.type,
        this.isJump,
        this.param,
        this.createTime,
        this.uid,
        this.readStatus,
        this.isComplete});

  MessageEntity.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    title = json['title'];
    content = json['content'];
    type = json['type'];
    isJump = json['is_jump'];
    param = json['param'];
    createTime = json['create_time'];
    uid = json['uid'];
    readStatus = json['read_status'];
    isComplete = json['is_complete'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['title'] = this.title;
    data['content'] = this.content;
    data['type'] = this.type;
    data['is_jump'] = this.isJump;
    data['param'] = this.param;
    data['create_time'] = this.createTime;
    data['uid'] = this.uid;
    data['read_status'] = this.readStatus;
    data['is_complete'] = this.isComplete;
    return data;
  }
}